#ifndef BFIX_H
#define BFIX_H

/*
 *======================================================================================================================
 * File: bfix.h
 *
 * Description:
 *     header file for bfix.c
 *
 *======================================================================================================================
 */

/*
 *=================================================================*
 *                                                                 *
 *   (c) Copyright, 2001 Massachusetts Institute of Technology.    *
 *       This material may be reproduced by or for the             *
 *       U.S. Government pursuant to the copyright license         *
 *       under the clause at 252.227-7013 (June, 1995).            *
 *                                                                 *
 *=================================================================*
 */

/*
 *----------------------------------------------------------------------------------------------------------------------
 * include files
 *----------------------------------------------------------------------------------------------------------------------
 */

/*
 *----------------------------------------------------------------------------------------------------------------------
 * constants
 *----------------------------------------------------------------------------------------------------------------------
 */

/*
 *----------------------------------------------------------------------------------------------------------------------
 * data types
 *----------------------------------------------------------------------------------------------------------------------
 */

/*
 *----------------------------------------------------------------------------------------------------------------------
 * global variables
 *----------------------------------------------------------------------------------------------------------------------
 */

/*
 *----------------------------------------------------------------------------------------------------------------------
 * function prototypes
 *----------------------------------------------------------------------------------------------------------------------
 */

#ifdef BFIX_DEBUG
   int
#else
   void
#endif
bfi(
   unsigned char *cptr,
   unsigned long bit_offset,
   unsigned long bit_len,
   long value);

   unsigned long
bfx(
   const unsigned char *cptr,
   unsigned long bit_offset,
   unsigned long bit_len);

#endif /* !BFIX_H */

